package string;
/**
 * int length()
返回当前字符串的长度
 */
public class LengthDemo {
    public static void main(String[] args) {
        String line ="我爱java!";
        int len = line.length();
        System.out.println("len:"+len);
    }
}
